import request from '@/utils/request'

//知识列表
export function getArticleList(query = {}) {
    return request({
        url: 'api/getArticleList',
        method: 'GET',
        params: query
    })
}


//获取分类
export function getType(query = {}) {
    return request({
        url: 'api/getType',
        method: 'GET',
        params: query
    })
}

//获取详情
export function getArticle(query = {}) {
    return request({
        url: 'api/getArticle',
        method: 'GET',
        params: query
    })
}

//收藏
export function addCollect(query = {}) {
    return request({
        url: 'api/addCollect',
        method: 'post',
        data: query
    })
}

//我的收藏
export function getMyCollect(query = {}) {
    return request({
        url: 'api/getMyCollect',
        method: 'GET',
        params: query
    })
}